﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using Volo.Abp;
using Volo.Abp.Domain.Entities.Auditing;

namespace PHMEE.Entities.MqttDt.CollectPara
{
    /// <summary>
    /// 触发采集参数
    /// </summary>
    public class TriggerPara : AggregateRoot<Guid>
    {
        /// <summary>
        /// 触发组数
        /// </summary>
        public int TriggerGroup { set; get; }
        /// <summary>
        /// 采集频率(HZ)
        /// </summary>
        public int Freq { set; get; }
        /// <summary>
        /// 采集长度
        /// </summary>
        public int Length { set; get; }
        /// <summary>
        /// 触发类型(1-加速度；2-速度；3-转速 4-加速度\转速；5-速度\转速)
        /// </summary>
        public DasTriggerTypeEnum TriggerType { set; get; }
        public ICollection<TriggerLimitPara> TriggerLimitList { get; set; }

        public TriggerPara()
        {
            TriggerType = DasTriggerTypeEnum.ACC;
            TriggerLimitList = new List<TriggerLimitPara>();
        }
    }
}
